if(isNil {vas_onRespawn}) then
{
hint "VAS is preloading...\nPlease Wait..";
private["_handle"];
_handle = [] execVM "base\support\modules\tonic_vas\functions.sqf";
waitUntil {scriptDone _handle};
_handle =[] execVM "base\support\modules\tonic_vas\config.sqf";
waitUntil {scriptDone _handle;};

if(isClass (configFile >> "CfgWeapons" >> "ACRE_PRC148") || vas_preload) then
{
	if(!vas_preload) then {vas_preload = true;};
	if (count vas_pre_weapons <= 0) then { vas_pre_weapons = [] call fnc_gear_weapons; };
	if (count vas_pre_mags <= 0) then { vas_pre_mags = [] call fnc_gear_mags; };
	if (count vas_pre_items <= 0) then { vas_pre_items = [] call fnc_gear_items; };
	if (count vas_pre_packs <= 0) then { vas_pre_packs = [] call fnc_gear_packs; };
	if (count vas_pre_goggles <= 0) then { vas_pre_goggles = [] call fnc_gear_goggles; };
};
hint "";
};


createDialog "VAS_Diag";
disableSerialization;

ctrlShow [2503,false];
ctrlShow [2507,false];
ctrlShow [2508,false];
ctrlShow [2509,false];